#include <iostream>
using namespace std;
const int N = 50;
int f[N];

int main()
{
    int n;
    cin >> n;
    for(int i = 0; i < n; ++i)
    {
        if(i == 0) f[i] = 0;
        else if(i == 1) f[i] = 1;
        else f[i] = f[i - 1] + f[i - 2];
        cout << f[i] << ' ';
    }
    cout << endl;
    return 0;
}